package com.example.model;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * 
 * 不需要添加解析spring-boot-configuration-processor依赖仍可以解析配置文件
 *
 */


@Configuration
@ConfigurationProperties(prefix = "com.fantasy.opensource")
@PropertySource(value = "classpath:resource.properties")
public class Resource {

	private String name;

	private String website;

	private String language;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getWebsite() {
		return website;
	}

	public void setWebsite(String website) {
		this.website = website;
	}

	public String getLanguage() {
		return language;
	}

	public void setLanguage(String language) {
		this.language = language;
	}

}
